package com.ruoyi.system.service.impl;

import com.ruoyi.system.domain.OkrSeats;
import com.ruoyi.system.mapper.OkrSeatsMapper;
import com.ruoyi.system.service.IOkrSeatsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by Bruce on 2021/9/13 19:58
 **/
@Service
public class OkrSeatsServiceImpl implements IOkrSeatsService {

    @Autowired
    private OkrSeatsMapper okrSeatsMapper;

    @Override
    public int insertSeats(OkrSeats okrSeats) {
        return okrSeatsMapper.insertSeats(okrSeats);
    }

    @Override
    public List<Long> selectSeatUsersByUserId(Long userId, Long okrId) {
        return okrSeatsMapper.selectSeatUsersByUserId(userId, okrId);
    }

    @Override
    public int deleteSeatsByUserId(Long userId, Long okrId) {
        return okrSeatsMapper.deleteSeatsByUserId(userId, okrId);
    }
}
